Add support for phy interrupts on BCM54213PE#6942
Merged
pelwell merged 2 commits intoraspberrypi:rpi-6.12.yfrom Jul 8, 2025
Merged
Add support for phy interrupts on BCM54213PE#6942pelwell merged 2 commits intoraspberrypi:rpi-6.12.yfrom
pelwell merged 2 commits intoraspberrypi:rpi-6.12.yfrom
Conversation
CM5 features the same Broadcom BCM54213PE phy for ethernet as present on pi5, but with a different mdio address (0 instead of 1 on pi5). Fix this and use correct mdio address 0. While at it set interrupt_parent to rp1_gpio instead of gpio (which is an alias to the former) as this is the handle already used in this block. Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>
The phy specific structure is missing the pointers for handling interrupts and link change notification. This results in interrupt's being polled on CM5: Fix this and copy the existing pointers from BCM54210E, which match the implementation. Before: [3.501498] macb 1f00100000.ethernet eth0: PHY [1f00100000.ethernet-ffffffff:00] driver [Broadcom BCM54213PE] (irq=POLL) After: [3.597582] macb 1f00100000.ethernet eth0: PHY [1f00100000.ethernet-ffffffff:00] driver [Broadcom BCM54213PE] (irq=168) Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>
Contributor
|
The code change looks great - simply opting into the interrupt facility. The DT changes are unnecessary - the firmware already patches the PHY address (in case the address changes in the future), and the |
Contributor
Author
|
Yes, the firmware patches the address, but why not specify the correct one in the node? Agree that this is maybe a nit pit, but I prefer when the dt doesn't rely on some firmware automatisms when possible. |
popcornmix
added a commit
to raspberrypi/firmware
that referenced
this pull request
Jul 11, 2025
kernel: Add support for phy interrupts on BCM54213PE See: raspberrypi/linux#6942 kernel: usb: dwc2: masquerade split-interrupt transfers See: raspberrypi/linux#6936
popcornmix
added a commit
to raspberrypi/rpi-firmware
that referenced
this pull request
Jul 11, 2025
kernel: Add support for phy interrupts on BCM54213PE See: raspberrypi/linux#6942 kernel: usb: dwc2: masquerade split-interrupt transfers See: raspberrypi/linux#6936
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
While working on the eee support for rp1's macb driver, I noticed that CM5 defines a phy interrupt, but it isn't used at all. It's caused by missing pointers in the ops struct of BCM54213PE. Also the mdio address differes from pi5 (probably different strapping on the board?), which is fixed by this series.
Before:
After: